<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@include file="/common/common.jsp" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<script type='text/javascript' src='${pageContext.request.contextPath}/js/public.js'></script>
	<script>
	function delItem(data_no){
		if(window.confirm('确认要删除该项吗？')){
			location.href='delCardinfo.action?cardno=' + data_no;
			//alert('删除成功！');
		}else{
			//alert('没有删除任何项！');
		}
	}
	</script>
		<title>xx</title>
		<STYLE type="text/css" > 
		.np { font-family: Webdings; font-size:18px; color:black; }
	A:link { COLOR: #000000; FONT-SIZE: 12px; TEXT-DECORATION: none}
	A:visited { COLOR: #000000; FONT-SIZE: 12px; TEXT-DECORATION: none}
	A:hover { COLOR: #cc0000; FONT-SIZE: 12px; TEXT-DECORATION: none}
	BODY {
	FONT-SIZE: 12px;
	margin-left: 0px;
	margin-top: 0px;
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;	
}
	TD { FONT-SIZE: 12px; line-height: 150%}
		.STYLE1 {color: #FFFFFF}
        </STYLE>
	</head>

	<body bgcolor="#ccddee" link="#000066" vlink="#0066FF" alink="#99FF00">
		<center>
		<s:form method="post" namespace="/cardinfo" theme="simple" action="findCardinfoForPagerWith" >
		<table width="100%" border="0">
		<tr>
			<td width="10%" align="right">
				基本类型:
			</td>
			<td width="15%">
				<s:select name="datadictByBasetypeid" list="datadictByBasetypelist" 
						listKey="typeid" 
						listValue="name"
						headerKey="0" headerValue="请选择类型"
						theme="simple"></s:select>
			</td>
			<td width="10%" align="right">
				地域类型:
			</td>
			<td width="15%">
				<s:select name="datadictByAreatypeid" list="datadictByAreatypelist" 
						listKey="typeid" 
						listValue="name"
						headerKey="0" headerValue="请选择类型"
						theme="simple"></s:select>
			</td>
			<td width="10%" align="right">
				所在部门:
			</td>
			<td width="15%" align="left">
				<s:select name="deptcode" list="departmentlist" 
						listKey="deptcode" 
						listValue="deptcaption"
						headerKey="0" headerValue="组织架构"
						theme="simple"></s:select>
			</td>
			<td align="left">
			</td>
		</tr>
		<tr>
			<td width="10%" align="right">
				功能类型:
			</td>
			<td width="15%">
				<s:select name="datadictByFuntypeid" list="datadictByFuntypelist" 
						listKey="typeid" 
						listValue="name"
						headerKey="0" headerValue="请选择类型"
						theme="simple"></s:select>
			</td>
			<td width="10%" align="right">
				子卡类型:
			</td>
			<td width="15%">
				<s:select name="cardsubtypeno" list="cardsubtypelist" 
									listKey="cardsubtypeno" 
									listValue="cardsubtypename"
									headerKey="0" headerValue="请选择类型"
									theme="simple"></s:select>
			</td>
			<td width="10%" align="right">
				金额:
			</td>
			<td width="15%">
				<s:textfield name="money" theme="simple" required="true"></s:textfield>
			</td>
			<td align="center">
				<s:submit value="查找"></s:submit>
			</td>
		</tr>
		</table>
		</s:form>
			<table width="100%" border=1 align="center" cellpadding="0" cellspacing="0" bgcolor="#ccddee" >
				<tr>
			        <td align="center">卡编号</td>
			        <td align="center">部门</td>
			        <td align="center">地域类型</td>
			        <td align="center">基本类型</td>
			        <td align="center">功能类型</td>
			        <td align="center">志号</td>
			        <td align="center">有效期</td>
			        <td align="center">详细/修改</td>
      			</tr>
      			<s:iterator value="pm.datas" status="rowstatus" var="cardinfo">
      				<tr <s:if test="#rowstatus.odd == true">bgcolor="white"</s:if>>
				        <td align="center">
				        	<s:property value="cardno"/>
				        </td>
				        <td align="center">
				        	<s:property value="#cardinfo.department.deptcaption"/>
				        </td>
				        <td align="center">
				        	<s:property value="#cardinfo.datadictByAreatype.name"/>
				        </td>
				        <td align="center">
				        	<s:property value="#cardinfo.datadictByBasetype.name"/>
				        </td>
				        <td align="center">
				        	<s:property value="#cardinfo.datadictByFuntype.name"/>
				        </td>
				        <td align="center">
				        	<s:property value="#cardinfo.cardmake.makecaption"/>
				        </td>
				        <td align="center">
				        	<s:property value="validdate"/>
				        </td>
			        	<td align="center">
			        		<a onclick="delItem('<s:property value="cardno"/>')">删除</a>
			        		<a href="findCardinfo.action?cardno=<s:property value="cardno"/>">详细</a>
			        		<a href="goUpdateCardinfo.action?cardno=<s:property value="cardno"/>">修改</a>
			        	</td>
			        </tr>
				</s:iterator>
				<tr>
					<td colspan="8" align="center">
				<pg:pager url="${url}" items="${pm.total }" export="offset,currentPageNumber=pageNumber">
					<pg:param name="money" value="${money}"/>
					<pg:param name="cardsubtypeno" value="${cardsubtypeno}"/>
					<pg:param name="deptcode" value="${deptcode}"/>
					<pg:param name="datadictByBasetypeid" value="${datadictByBasetypeid}"/>
					<pg:param name="datadictByAreatypeid" value="${datadictByAreatypeid}"/>
					<pg:param name="datadictByFuntypeid" value="${datadictByFuntypeid}"/>
					<pg:first>
						<a href="${pageUrl }">首页</a>
					</pg:first>
					<pg:prev>
						<a href="${pageUrl }">前页</a>
					</pg:prev>
					<pg:pages>
						<c:choose>
							<c:when test="${currentPageNumber eq pageNumber}">
								<font color="red">${pageNumber }</font>
							</c:when>
							<c:otherwise>
								<a href="${pageUrl }">${pageNumber }</a>
							</c:otherwise>
						</c:choose>
					</pg:pages>
					<pg:next>
						<a href="${pageUrl }">后页</a>
					</pg:next>
					<pg:last>
						<a href="${pageUrl }">尾页</a>
					</pg:last>
				</pg:pager>
					</td>
				</tr>
      		</table>
		</center>

	</body>
</html>
